import { IsNotEmpty, IsString } from 'class-validator';
import { Roles } from '../../roles/entities/role.entity';
import { Menu } from '../entities/menu.entity';

export class CreateMenuDto {
  @IsNotEmpty()
  @IsString()
  label: string;

  @IsString()
  route?: string;

  @IsNotEmpty()
  @IsString()
  file?: string;

  @IsNotEmpty()
  @IsString()
  icon?: string;

  roles?: Roles[];

  parent?: number;
}
